package project.pianpian.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * Description:
 * Param:
 * return:
 * Author: HSY
 * Date:2022/12/26
 */
@Data
@AllArgsConstructor
public class Order {
    private int id;
    private int employer_id;
    private int contractor_id;
    private int budget;
    private String title;
    private String describe;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deadline;
    private int isFinish;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    public Order(int employer_id, int contractor_id, int budget, String title, String describe, Date deadline, int isFinish, Date time) {
        this.employer_id = employer_id;
        this.contractor_id = contractor_id;
        this.budget = budget;
        this.title = title;
        this.describe = describe;
        this.deadline = deadline;
        this.isFinish = isFinish;
        this.time = time;
    }
}
